import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'



 //添加知识点
export const knowledgeAddService = (knowledgeData)=>{
    return request.post('/admin/teaching/knowledge/add',knowledgeData);

}


//知识点列表查询
export const knowledgeListService = (params)=>{
    return  request.get('/admin/teaching/knowledge/list',{params:params})
 }


  //知识点分类删除
export const knowledgeDeleteService = (id)=>{
    return request.get('/admin/teaching/knowledge/del?id='+id)
}


//知识点分类修改
export const knowledgeUpdateService = (knowledgeData)=>{
    return  request.post('/admin/teaching/knowledge/edit',knowledgeData)
 }

//知识点发布
 export const knowledgePublishService = (knowledgeData)=>{
    return  request.post('/admin/teaching/knowledge/publish',knowledgeData)
 }